package Cn.Sarkar.MMS.PermissionDefination

import Cn.Sarkar.Entities.MMS.ToJsonEntities.JPermissionItem
import Cn.Sarkar.Entities.ToJsonEntities.JDescription
import Cn.Sarkar.Entities.ToJsonEntities.JName
import Cn.Sarkar.MMS.DataBaseDefinations.Independent.Permission.PermissionItems
import Cn.Sarkar.PermissionManager.AbstractPermissionDefs
import Cn.Sarkar.PermissionManager.Entities.IPermissionItem
import Cn.Sarkar.PermissionManager.define

class PermissionItem : JPermissionItem(), IPermissionItem

object PermissionDefs : AbstractPermissionDefs() {
        val Basic = define(PermissionItem()){
            name = JName().apply {
                ug = "ئاساسى ھوقوق"
                en = "Basic permisison"
                zh = "基本权限"
                kz = "Basic permission"
                ru = "Basic permission"
                category = PermissionItems.CATEGORY
            }
            description = JDescription().apply {
                ug = "ئەڭ ئاساسلىق ھوقوق بولۇپ ئەڭ تۆۋەن دەرىجىدە ئادەتتىكى مەشغۇلاتلارغا يول قويۇلىدۇ"
                en = "basic permission item supports some basic operations"
                zh = "是最低， 基本权限允许一些基本操作"
                kz = "basic permission item supports some basic operations"
                ru = "basic permission item supports some basic operations"
                category = PermissionItems.CATEGORY
            }
            additional = -1

            code = "Basic"
        }

    init {

    }

}